package com.cskaoyan.vo.mallvo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author hsp
 * @date 2021/5/10 22:36
 */
@Data
public class KeyWordVo {
    private Integer id;

    private String keyword;

    private String url;

    private boolean isHot;

    private boolean isDefault;



    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") //东八区
    private Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") //东八区
    private Date updateTime;

    public KeyWordVo() {
    }

    public KeyWordVo(Integer id, String keyword, String url, boolean isHot, boolean isDefault, Date addTime, Date updateTime) {
        this.id = id;
        this.keyword = keyword;
        this.url = url;
        this.isHot = isHot;
        this.isDefault = isDefault;
        this.addTime = addTime;
        this.updateTime = updateTime;
    }
}
